/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.agi.devsol.ejb.requisito;

import br.com.agi.devsol.dominio.Requisito;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author rgrosz
 */
@Stateless
public class ApagadorRequisitoImpl implements ApagadorRequisito{

    @PersistenceContext
    private EntityManager em;
    
    @Override
    public void excluir(Requisito requisito) {  
        Requisito r;
        r=em.merge(requisito); 
        em.remove(r);        
    }
    
}
